package com.fishery.order.handler;

import com.fishery.entity.Result;
import com.fishery.order.entity.client.ProductInventoryVo;
import com.fishery.order.service.client.BaseClient;
import org.springframework.stereotype.Component;

@Component
public class BaseClientFallback implements BaseClient {
	@Override
	public Result getBaseById(String baseId) {
		return Result.error("服务繁忙，获取基地信息失败");
	}

	@Override
	public Result decreaseAmountAndWeightOfRecord(ProductInventoryVo productInventoryVo) {
		return Result.error("服务繁忙，减少库存失败");
	}

	@Override
	public Result increaseAmountAndWeightOfRecord(ProductInventoryVo productInventoryVo) {
		return Result.error("服务繁忙，归还失败");
	}

	@Override
	public Result traceInformationOfProduct(String productId, int size, int current) {
		return Result.error("服务繁忙");
	}

	@Override
	public Result traceSupplyInformation(String supplyId) {
		return Result.error("服务繁忙");	}

	@Override
	public Result traceMoreFeedingInformationOfProduct(String farmingId, int size, int current, String catchTime) {
		return Result.error("服务繁忙");	}


}
